<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> - Bootstrap3 Markdown编辑器</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico"> <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="css/plugins/markdown/bootstrap-markdown.min.css" />
    <link href="css/style.css?v=4.1.0" rel="stylesheet">
</head>
<body>
<div class="col-sm-6">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>增加教师</h5>
        </div>
        <div class="ibox-content">
            <form class="form-horizontal m-t" id="signupForm" method="post" action="matchaddteam.action?type=2&mid=${mid}">
                <div class="form-group">
                    <label class="col-sm-3 control-label">选择自己的团队添加进去：</label>
                    <div class="col-sm-8">
                        <select name="teamid">
                            <c:forEach items="${teamlist}" var="team">
                            <option value="${team.teamid}">${team.teamname}</option>
                            </c:forEach>
                        </select>
                        <p id="mess" style="color: #ff0000">${mess}</p>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-8 col-sm-offset-3">
                        <button class="btn btn-primary" type="button" onclick="myfun(${mess})">报名</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<!-- 全局js -->
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>

<!-- 自定义js -->
<script src="js/content.js?v=1.0.0"></script>

<!-- simditor -->
<script type="text/javascript" src="js/plugins/markdown/markdown.js"></script>
<script type="text/javascript" src="js/plugins/markdown/to-markdown.js"></script>
<script type="text/javascript" src="js/plugins/markdown/bootstrap-markdown.js"></script>
<script type="text/javascript" src="js/plugins/markdown/bootstrap-markdown.zh.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script>
function myfun(obj){
    if(obj!=null){
        return ;
    }else{
        $('#signupForm').submit();
    }
}
</script>



</body>

</html>
